package com.ms.p2p.dao;


import org.apache.ibatis.annotations.Param;


import java.util.HashMap;
import java.util.List;

/**
 * Created by daimajia on 2017/11/21.
 */

public interface RedPacketDao extends  CrudDao{


    List findPager(@Param("begin") int begin, @Param("size") Integer pageSize, @Param("status") String status,@Param("user_id") Integer user_id,@Param("time_limit") Integer time_limit);

    int findCount();

    int usePacket(@Param("packet_id") String packet_id);

    void overDue();
}
